//
//  VOHMusicCollectionViewCell.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/19.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHMusicCollectionViewCell.h"

@implementation VOHMusicCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setUpView];
    }
    return self;
}

-(void)setUpView{

    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height - 1)];
    
    self.titleLabel.backgroundColor = [UIColor whiteColor];
    self.titleLabel.text = @"流行";
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:self.titleLabel];
    
    self.maskView = [[UIView alloc] initWithFrame:CGRectMake(0, self.titleLabel.frame.size.height - 1, self.titleLabel.bounds.size.width, 1)];
    self.maskView.backgroundColor = [UIColor jinjuse];
    [self.contentView addSubview:self.maskView];
    self.maskView.alpha = 0;
    
}


-(void)setTitle:(NSString *)title{
    _title = title;
    self.titleLabel.text = title;
}





@end
